package com.hakim.wfb.customer.enums;

/**
 * Created by walkman on 2017/7/9.
 */
public enum UserIDAuthStatusEnum {

    UNAUTHED(1, "未认证"),

    AUTHED(2, "已认证"),;

    private Integer code;
    private String value;

    UserIDAuthStatusEnum() {
    }

    UserIDAuthStatusEnum(Integer code, String value) {
        this.code = code;
        this.value = value;
    }

    public static UserIDAuthStatusEnum getByCode(Integer code) {
        for (UserIDAuthStatusEnum type : values()) {
            if (type.getCode().equals(code)) {
                return type;
            }
        }
        return null;
    }

    public Integer getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }
}
